<div class="inmodal">
  <div class="modal-header">
    <h4 class="modal-title">{{modal.result.managerId?"修改管理员":"新增管理员"}}</h4>
  </div>
  <div class="modal-body">
    <div class="row">
      <div class="form-horizontal">
        <div class="col-md-10">
          <div class="form-group">
            <label class="control-label col-md-5">账号：</label>
            <div class="col-md-7">
              <input ng-model="modal.result.userName" class="form-control" type="text" placeholder="请输入账号">
            </div>
          </div>
          <div ng-if="!modal.result.managerId" class="form-group">
            <label class="control-label col-md-5">密码：</label>
            <div class="col-md-7">
              <input ng-model="modal.result.password" class="form-control" type="password" placeholder="请输入密码">
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-md-5">真实姓名：</label>
            <div class="col-md-7">
              <input ng-model="modal.result.realName" class="form-control" type="text" placeholder="请输入真实姓名">
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-md-5">联系方式：</label>
            <div class="col-md-7">
              <input ng-model="modal.result.connectTel" class="form-control" type="text" placeholder="请输入联系方式">
            </div>
          </div>
          <div class="form-group" style="display:none;">
            <label class="control-label col-md-5">角色：</label>
            <div class="col-md-7">
              <select class="form-control" ng-model="modal.result.roleId" ng-options="role.roleId as role.roleName for role in modal.result.roleList">
                <option value="">—请选择角色—</option>
              </select>

            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="modal-footer">
    <button type="button" class="btn btn-white" ng-click="modal.cancel()">取消</button>
    <button type="button" class="btn btn-primary" ng-click="modal.ok()">提交</button>
  </div>
</div>
